import request from "../utils/request";

/**
 * 获取商品列表
*/

export const getGoods = (params?: any) => request.get('/goods/list', { params })

/**
 * 获取商品详情
*/

export const getDetail = (id: number) => request.get('/goods/item', { params: { id } })

/**
 * 获取分类列表
*/

export const getCategory=()=>request.get('/goods/category')